home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / quad / RCS / Quad_Compare.man,v < prev    next >
Encoding:
Text File  |  1991-03-18  |  1.7 KB  |  77 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.1
  10. date     91.03.18.12.19.43;  author kupfer;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @Man page for quad comparison routines.
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @'\" Copyright 1991 Regents of the University of California
  27. '\" Permission to use, copy, modify, and distribute this
  28. '\" documentation for any purpose and without fee is hereby
  29. '\" granted, provided that this notice appears in all copies.
  30. '\" The University of California makes no representations about
  31. '\" the suitability of this material for any purpose.  It is
  32. '\" provided "as is" without express or implied warranty.
  33. '\" 
  34. '\" $Header: /sprite/lib/forms/RCS/lib.man,v 1.3 91/01/07 17:55:52 mottsmth Exp $ SPRITE (Berkeley)
  35. '/" 
  36. .so \*(]ltmac.sprite
  37. .HS Quad lib
  38. .BS
  39. '\" Note:  do not modify the .SH NAME line immediately below!
  40. .SH NAME
  41. Quad_CompareUns, Quad_EQ \- Comparison routines for 64-bit integers
  42. .SH SYNOPSIS
  43. .nf
  44. \fB#include <quad.h>\fR
  45. .sp
  46. int
  47. \fBQuad_CompareUns\fR(\fIuQuad1Ptr\fR, \fIuQuad2Ptr\fR)
  48. .sp
  49. Boolean
  50. \fBQuad_EQ\fR(\fIuQuad1\fR, \fIuQuad2\fR)
  51. .SH ARGUMENTS
  52. .AS u_quad *uQuad1Ptr
  53. .AP u_quad uQuadN in
  54. N'th unsigned quad argument.
  55. .AP u_quad *uQuadNPtr in
  56. Pointer to N'th unsigned quad argument.
  57. .BE
  58.  
  59. .SH DESCRIPTION
  60. .PP
  61. These routines compare two 64-bit integers.
  62. .B Quad_CompareUns
  63. compares two unsigned quads, returning \-1 if the first value is less
  64. than the second, 0 if they are equal, and +1 if the first value is
  65. greater than the second.  It was designed for use with
  66. .BR qsort .
  67. .PP
  68. .B Quad_EQ
  69. compares two quads or unsigned quads, returning TRUE if they are equal
  70. and FALSE if they are not.
  71. .B Quad_EQ
  72. is a macro, so beware of side effects.
  73.  
  74. .SH KEYWORDS
  75. quad, counter
  76. @
  77.